package jast.util.es;



import java.io.Serializable;
import java.util.List;

/**
 * ES数据对象
 * 
 * @author Jast
 */
public class ESDataInfo extends TableDataInfo implements Serializable
{
    private static final long serialVersionUID = 1L;

    private long took;

    private List<?> fieldInfo;

    public long getTook() {
        return took;
    }

    public void setTook(long took) {
        this.took = took;
    }

    public List<?> getFieldInfo() {
        return fieldInfo;
    }

    public void setFieldInfo(List<?> fieldInfo) {
        this.fieldInfo = fieldInfo;
    }





    /**
     * @name buildError
     * @date 2020/12/17 3:17 下午
     * @description 生成错误代码
     * @return com.bjga.common.core.page.ESDataInfo
     * @auther Jast
     */
    public static ESDataInfo buildError(String msg, int httpStatus){
        ESDataInfo esDataInfo = new  ESDataInfo();
        esDataInfo.setMsg(msg);
        esDataInfo.setCode(httpStatus);
        return esDataInfo;
    }
}
